This windows application is designed to show a parsed script file without the need of a web server. This may be useful for CD-ROM distribution, Stand-Alone materials, and other uses. The application starts the php executable with a file parameter, showing the result in a HTML format.
Installation:
For best initial results, copy all items in the archive to your PHP directory,
that will make it very easy to start the application and get good results.
After that, you can modify the INI file settings to achieve your purposes.
The newest version of the application requires an INI file to provide important parameters in an obvious format:
[General] DocumentRoot=c:\web\docroot TemporaryFile=c:\temp\phptempfile.html HomeFile=c:\web\docroot\index.php [Interface] Height=500 Width=600 ShowSourceTab=0
The INI file now (>version 1.2.5) supports system-defined values:
%tmp = Temporary Directory Path (like c:\temp)
%win = Windows Directory Path (like c:\windows)
%sys = System Directory Path (like c:\windows\system32)
%exe = ScriptViewer Executable Path (like c:\scriptviewer)
%cmp = Name of the computer (like COMPUTER123)
%usr = Username of the person logged in (like DAAROND)
Use them in the INI file, like:
TemporaryFile=%tmp\tempfile.html
It supports forms and hyperlinks. POST method forms are processed normally, but GET method forms (also in the form of hyperlinks) must be a full path from the DocumentRoot path, prepended by "http://scriptviewer", like "http://scriptviewer/php4/main2.php?a=1&b=2". This is a limitation of IE, not of programming-- Microsoft does not send the data without the "http://" portion.
Version History:
v0.8
-first released version, incorporate new components
v0.9
-ListError(0) bug, tried to fix by just deleteing the first lines
v1.0
-ListError(0) bug, now delete is looking for specific information
-History ListError fixed
-ViewSource feature added
v1.1 (Unreleased)
-"Home Directory" functionality to facilitate relative paths
-New GUI borrowed from Michael Cessna's demo project
v1.2
-Changed from command-line to .INI file
-Changed internal HTML parse to Microsoft Internet Explorer ActiveX
v1.2.1
-Fix: "Show Source Tab" was not related to anything
-Fix: "StartingAddress" confused with "HomeFile", dropped starting address
-Fix: "StartingAddress"/"HomeFile" not executed on startup
-Fix: "PHP Extension" was not loading or saving to the INI file
v1.2.2
-Fix: Cannot navigate to HTML pages
v1.2.5
-Fix: hard-coded temporary file path
-Added system-defined values for INI file: Windows Path, Exe Path, Temp Path, Username, Computer Name
-Changed INI file to reflect system-defined values
-Introduced commands -- consult the web page for more information
v1.2.6
-Added mechanism to support other script types like Perl
-Changed name from PHPViewer to ScriptViewer
v1.3.0
-Fix: endless loop surfing to web sites
-Added show option tab
-Kiosk mode with -k
-Script editing feature
v1.3.1
-Changed Kiosk mode to not show navigation bars or tabs
v1.3.2
-Fix: GET data throws off file extension parsing
v1.3.3
-Fix: Kiosk mode fixes (again)
-Fix: Script source now loads current script
-Added font and size selection for Script Source
-Added Top, Left, and Maximized to Interface section
v1.4.0
-Microsoft Internet Explorer is no longer required
v1.4.1
-Fix: custom browser image requests not loading-- must now full path from docroot
-Fix: custom browser not loading types not in list like .htm or .html
-Fix: custom browser GET data not arriving
v1.4.2
-Fix: Internal HTML viewer not properly processing form submissions
v1.4.5
-Fix: forward and back buttons not operational
-Fix: reload button not operational on HTML viewer
-Upgraded HTML viewer to support printing
-Changed Temporary File to be Temporary Directory (now makes multiple files)